package com.weaver.qfengx.entity;

import java.util.List;

/**
 * @Description
 * @Author Qfengx <qffg1998@126.com>
 * @Date 2021-07-19 20:54:21
 */
public class PageInfo<T> {

    private List<T> list;
    private long count;
    private long current;
    private long limit;
    private long pages;

    public List<T> getList() {
        return list;
    }

    public PageInfo<T> setList(List<T> list) {
        this.list = list;
        return this;
    }

    public long getCount() {
        return count;
    }

    public PageInfo<T> setCount(long count) {
        this.count = count;
        return this;
    }

    public long getCurrent() {
        return current;
    }

    public PageInfo<T> setCurrent(long current) {
        this.current = current;
        return this;
    }

    public long getLimit() {
        return limit;
    }

    public PageInfo<T> setLimit(long limit) {
        this.limit = limit;
        return this;
    }

    public long getPages() {
        return pages;
    }

    public PageInfo<T> setPages(long pages) {
        this.pages = pages;
        return this;
    }

    @Override
    public String toString() {
        return "PageInfo{" +
                "list=" + list +
                ", count=" + count +
                ", current=" + current +
                ", limit=" + limit +
                ", pages=" + pages +
                '}';
    }
}
